/*
 * @Author: your name
 * @Date: 2021-04-17 19:50:20
 * @LastEditTime: 2021-04-19 10:17:53
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /flutter_demo/lib/utils/storage.dart
 */
import 'package:shared_preferences/shared_preferences.dart';

class Storage {
  static Future<void> setString(key, val) async {
    SharedPreferences sd = await SharedPreferences.getInstance();
    sd.setString(key, val);
  }

  static Future<String> getString(key) async {
    SharedPreferences sd = await SharedPreferences.getInstance();
    return sd.getString(key);
  }

  static Future<void> remove(key) async {
    SharedPreferences sd = await SharedPreferences.getInstance();
    sd.remove(key);
  }
}
